package com.chaoyi.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chaoyi.model.User;

public interface UserMapper {
	
	public List<User> findUser(@Param("user")User user);
	
	public List<User> findUserList(@Param("offset")String offset,@Param("limit")String limit,
										@Param("user")User user);
	
	public int findUserNameNum(@Param("userName")String userName,@Param("id")int id);
	
	public int addUser(@Param("user")User user);
	
	public int selectUsernumber();
	
	public User findUserOne(@Param("id")int id);

	public int updateUser(@Param("user")User user);
	
	public int deleteUser(@Param("id")int id);

	public List<User> findBusiness();
	
}
